package com.imooc.reflect;

public class ClassDemo2 {
    public static void main(String[] args) {
        Class c1 = int.class; //int的类型
        Class c2 = String.class; //String类的类型 String类字节码（自己发明的）
        Class c3 = double.class;
        Class c4 = Double.class;
        Class c5 = void.class;
        System.out.println(c1.getName());
        System.out.println(c2.getName());
        System.out.println(c2.getSimpleName());//不带包名的类的名称
        System.out.println(c5.getName());
    }
}
